package com.geyue.core.model;

import com.geyue.common.base.model.Model;
import lombok.Data;
import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 直播间
 * Created by Lyon on 2017/4/20.
 */
@Data
@NameStyle(value = Style.normal)
@Table(name = "live")
public class Live extends Model {

    //教师ID
    private Integer teacherId;
    //直播间名称 推流名称
    private String stream;
    //标题
    private String title;
    //封面图片
    private String imgUrl;
    //是否开播
    private Integer isOpen;
    //观看人数
    private int total;

    @Transient
    private String name;
    @Transient
    private String topId;

}
